FROM mayan31370/openjdk-alpine-with-chinese-timezone:8-jdk
ENV MYPATH /home/passbook
WORKDIR $MYPATH
COPY .. .
ADD ../passbook-api/target/passbook-api-1.0-SNAPSHOT.jar passbook-api.jar
ADD ../passbook-data-sync/target/passbook-data-sync-1.0-SNAPSHOT.jar passbook-data.jar
VOLUME $MYPATH

EXPOSE 8888
EXPOSE 30971
RUN chmod +x start.sh
ENTRYPOINT ["sh","/start.sh"]

